var mongoose = require('mongoose');
var mongoosePaginate =require('mongoose-paginate');
var Schema = mongoose.Schema;
var UserSchema = new Schema({
  'createTime': Date, // 创建时间
  'username': String, // 昵称
  'password': String, // 密码
  'campus' :String,
  'college' :String,
  'class' : Array,
  'name': String
});

// 分页
UserSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Users', UserSchema);